package com.wjyxsy.bean;

import com.wjyxsy.service.IUserService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

@Component("userComponent")
public class UserComponent {

    @Reference(check = false)
    private IUserService userService;

    public String method1(String name) {
        return userService.sayHello1(name);
    }

    public String method2(String name) {
        return userService.sayHello2(name);
    }

    public String method3(String name) {
        return userService.sayHello3(name);
    }
}
